package com.kudian.restful.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DeliveryOrder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "delivery_order")
public class DeliveryOrder implements java.io.Serializable {

	// Fields

	private Integer deliveryId;
	private String expressName;
	private String deliverySn;
	private String orderSn;
	private Integer orderId;
	private Timestamp addTime;
	private Integer managerUserId;
	private String consignee;
	private Timestamp updateTime;
	private Short status;

	// Constructors

	/** default constructor */
	public DeliveryOrder() {
	}

	/** minimal constructor */
	public DeliveryOrder(String deliverySn, String orderSn, Integer orderId,
						 Short status) {
		this.deliverySn = deliverySn;
		this.orderSn = orderSn;
		this.orderId = orderId;
		this.status = status;
	}

	/** full constructor */
	public DeliveryOrder(String expressName, String deliverySn, String orderSn,
			Integer orderId, Timestamp addTime, Integer managerUserId,
			String consignee, Timestamp updateTime, Short status) {
		this.expressName = expressName;
		this.deliverySn = deliverySn;
		this.orderSn = orderSn;
		this.orderId = orderId;
		this.addTime = addTime;
		this.managerUserId = managerUserId;
		this.consignee = consignee;
		this.updateTime = updateTime;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "delivery_id", unique = true, nullable = false)
	public Integer getDeliveryId() {
		return this.deliveryId;
	}

	public void setDeliveryId(Integer deliveryId) {
		this.deliveryId = deliveryId;
	}

	@Column(name = "express_name", length = 120)
	public String getExpressName() {
		return this.expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}

	@Column(name = "delivery_sn", nullable = false, length = 50)
	public String getDeliverySn() {
		return this.deliverySn;
	}

	public void setDeliverySn(String deliverySn) {
		this.deliverySn = deliverySn;
	}

	@Column(name = "order_sn", nullable = false, length = 20)
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "order_id", nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "add_time", length = 19)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	@Column(name = "manager_user_id")
	public Integer getManagerUserId() {
		return this.managerUserId;
	}

	public void setManagerUserId(Integer managerUserId) {
		this.managerUserId = managerUserId;
	}

	@Column(name = "consignee", length = 60)
	public String getConsignee() {
		return this.consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	@Column(name = "update_time", length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "status", nullable = false)
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

}